import { createRouter,createWebHashHistory } from "vue-router";
import Home from '../views/Home/index.vue'
import FenLei from '../views/fenlei/index.vue'
import WoDe from '../views/wode/index.vue'
import GouWu from '../views/gouwu/index.vue'
import SouSuo from '../views/sousuo/index.vue'
import ZhuanTi from '../views/zhuanti/index.vue'

const routes =[
    {
        path:'/',
        redirect:'/home'
    },
    {
        path:'/home',
        name:'home',
        component:Home,
        meta:{is_footer:true,is_header:true}
    },
    {
        path:'/fenlei',
        name:'fenlei',
        component:FenLei,
        meta:{is_footer:true,is_header:true}
    }, 
    {
        path:'/wode',
        name:'wode',
        component:WoDe,
        meta:{is_footer:true}
    },
    {
        path:'/gouwu',
        name:'gouwu',
        component:GouWu,
        meta:{is_footer:true}
    },
    {
        path:'/sousuo',
        name:'sousuo',
        component:SouSuo,
    },
    {
        path:'/zhuanti',
        name:'zhuanti',
        component:ZhuanTi,
        meta:{is_footer:true}
    }
]
const router = createRouter({
    history:createWebHashHistory(),
    routes
})
export default router